import qs from 'qs'
//接口地址统一管理
// 请求 登录 查询

import request from './request'

// 请求精品数据
export const JingPinAPI = () => request.get("/products/recommend")
// 请求热门数据
export const ReMenAPI = () => request.get("/products/hot")
// 发送短信
export const SendSMSAPI = (params) => request.post("/sendSMS",qs.stringify(params))
//手机号验证码登录接口
export const PhoneReginAPI = (params) => request.post("/phoneRegin",qs.stringify(params))
// 微信扫码登录
export const WeiXinLoginAPI = (params) => request.post("/wechatUsers/PCLogin",qs.stringify(params))
// 微信扫码登录
export const BindPhoneAPI = (params) => request.post("/wechatUsers/binding",qs.stringify(params))
// 请求用户信息
export const UserProfilesAPI = () => request.get("/shop/userProfiles")
// 请求商品详情
export const GoodsDetaisAPI = (id) => request.get(`/products/${id}`)
